#!/bin/bash
set -eux

proj_root=$(dirname $(dirname $(realpath $0)))
cd $proj_root

# 发布

find deploy/systemd -type f
# deploy/systemd/install_test_loss_as_service.sh
# deploy/systemd/test-loss.service

for f in $(find deploy/systemd -type f); do
    curl --user 'ioplus:ioplus' \
        -T $proj_root/${f} \
        http://mirror.wh.io.plus/test_loss/${f}
done
